package com.platform.comm.entity;


import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author coder
 */
@Entity
@Table(name = "ncloud_sys_data_info")
public class CommDataInfoEntity implements Serializable {
    private String id;
    private String fileType;
    private String fileName;
    private String fileUrl;
    private BigDecimal fileLength;
    private LocalDateTime uploadDate;
    private String uploadUser;
    private String uploadDept;
    private String subType;
    private String templateFile;


    private String uploadUserName;
    private String uploadOrgName;
    private String errorUrl;
    private String jobStatus;

    @Id
    @Column(name = "ID", nullable = false, length = 32)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    @Basic
    @Column(name = "FILE_TYPE", length = 64)
    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    @Basic
    @Column(name = "FILE_NAME", length = 256)
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Basic
    @Column(name = "FILE_URL", length = 256)
    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    @Basic
    @Column(name = "FILE_LENGTH", precision = 0)
    public BigDecimal getFileLength() {
        return fileLength;
    }

    public void setFileLength(BigDecimal fileLength) {
        this.fileLength = fileLength;
    }

    @Basic
    @Column(name = "UPLOAD_DATE", nullable = true, length = 19)
    public LocalDateTime getUploadDate() {
        return uploadDate;
    }

    public void setUploadDate(LocalDateTime uploadDate) {
        this.uploadDate = uploadDate;
    }

    @Basic
    @Column(name = "UPLOAD_USER", length = 32)
    public String getUploadUser() {
        return uploadUser;
    }

    public void setUploadUser(String uploadUser) {
        this.uploadUser = uploadUser;
    }

    @Basic
    @Column(name = "UPLOAD_DEPT", length = 32)
    public String getUploadDept() {
        return uploadDept;
    }

    public void setUploadDept(String uploadDept) {
        this.uploadDept = uploadDept;
    }


    @Basic
    @Column(name = "SUB_TYPE", length = 64)
    public String getSubType() {
        return subType;
    }

    public void setSubType(String subType) {
        this.subType = subType;
    }

    @Basic
    @Column(name = "TEMPLATE_FILE", length = 256)
    public String getTemplateFile() {
        return templateFile;
    }

    public void setTemplateFile(String templateFile) {
        this.templateFile = templateFile;
    }


    @Transient
    public String getUploadUserName() {
        return uploadUserName;
    }

    @Transient
    public String getUploadOrgName() {
        return uploadOrgName;
    }

    @Transient
    public String getErrorUrl() {
        return errorUrl;
    }

    public void setUploadUserName(String uploadUserName) {
        this.uploadUserName = uploadUserName;
    }

    public void setUploadOrgName(String uploadOrgName) {
        this.uploadOrgName = uploadOrgName;
    }

    public void setErrorUrl(String errorUrl) {
        this.errorUrl = errorUrl;
    }

    @Transient
    public String getJobStatus() {
        return jobStatus;
    }

    public void setJobStatus(String jobStatus) {
        this.jobStatus = jobStatus;
    }
}
